<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Resultados UC Propone</title>


    <!-- Bootstrap -->
    <link href="http://vota.ucpropone.cl/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="http://vota.ucpropone.cl/static/css/colorbox.css" rel="stylesheet">
	<style>
	.center{margin: 0 auto 0 auto;}
	body{background-color:#FAEDBE;}
	</style>
	<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://vota.ucpropone.cl/static/js/bootstrap.min.js"></script>
    <link rel="stylesheet" type="text/css" href="http://vota.ucpropone.cl/static/js/jqplot/jquery.jqplot.min.css" />

  </head>
<body>
<div class="container">
<h1> Resultados UC Propone </h1>
    <div class="row">
        <div class="col-sm-12" style="padding-bottom:40px;">
            Muchas gracias a todos los que participaron. Los siguientes temas se transformar&aacute;n en investigaciones ejercidas por alumnos. T&uacute; podr&iacute;as ser uno!
        </div>
    </div>
    {% for t,r in temas.items %}
        {% if forloop.counter == 1 or forloop.counter == 3 or forloop.counter == 5 %} <div class="row">{%endif%}
        <div class="col-sm-6">
        <table class="table">
        <caption><b>{{t}}</b></caption>
        {% for row in r %}
            {% if forloop.counter > 3 %}
                <tr>
            {% else %}
                <tr style="background-color: #00FF00;">
            {% endif %}
            <td><b>{{row.0}}</b></td>
            <td><b>{{row.1}}</b></td>
            </tr>
        {% endfor %}
</table>
    </div>
    {% if forloop.counter == 2 or forloop.counter == 4 or forloop.counter == 6 %} </div> {%endif%}
    {% endfor %}
    <div class="row" style="margin-top: 40px;">
        <div class="col-sm-12">
            <table class="table">
        <caption><b>Votos por carrera</b></caption>
        {% for row in data %}
            <tr>
                <td>{{row.uai|addslashes}}</td><td>{{row.count|addslashes}}</td>
            </tr>
        {% endfor %}
    </table>
        </div>
    </div>
</div>

</body>
</html>